using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThuySan.Bussiness
{
	[Serializable]
	[Table("[dbo].[Property]")]
	public partial class Property
	{

		#region Properties

		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[Required]
		[Column("PropertyId")]
		public System.Int32 PropertyId { get; set; }

		[Column("Name")]
		public System.String Name { get; set; }

		[Column("GroupName")]
		public System.String GroupName { get; set; }

		[Column("IsBit")]
		public System.Boolean? IsBit { get; set; }

		[Column("IsNumber")]
		public System.Boolean? IsNumber { get; set; }

		[Column("Priority")]
		public System.Int32? Priority { get; set; }

		#endregion

		#region Navigation

		[ForeignKey("PropertyId")]
		public virtual ICollection<ProductProperty> ProductPropertys { get; set; }
		[ForeignKey("PropertyId")]
		public virtual ICollection<CategoryProperty> CategoryPropertys { get; set; }

		#endregion

	}
}
